package com.hlm.demo.entity.ex;

import org.hibernate.validator.constraints.NotBlank;

import java.io.Serializable;

/**
 * @author MRD
 */
public class RoleWithModule implements Serializable {

    private Integer roleId;
    @NotBlank(message = "角色的名称不能为空或全是空格")
    private String roleName;
    @NotBlank(message = "角色所拥有的模块不能为空,或全是空格")
    private String allModule;


    @Override
    public String toString() {
        return "RoleWithModule{" +
                "roleId=" + roleId +
                ", roleName='" + roleName + '\'' +
                ", allModule='" + allModule + '\'' +
                '}';
    }


    public Integer getRoleId() {
        return roleId;
    }

    public void setRoleId(Integer roleId) {
        this.roleId = roleId;
    }

    public String getRoleName() {
        return roleName;
    }

    public void setRoleName(String roleName) {
        this.roleName = roleName;
    }

    public String getAllModule() {
        return allModule;
    }

    public void setAllModule(String allModule) {
        this.allModule = allModule;
    }
}
